package com.ww.java8.datetime;

import java.time.LocalDate;
import java.time.LocalTime;

/**
 * 从字符串转换
 */
public class ConvertFromStr {

    public static void main(String[] args) {
        LocalDate date = LocalDate.parse("2020-01-11");
        LocalTime time = LocalTime.parse("00:02:00");

        System.out.println(date);
        System.out.println(time);
    }
}
